package logging

import (
	"fmt"
	"time"

	"web/pkg/setting"
)

// getLogFilePath get the log file save path
func getLogFilePath() string {
	return setting.AppSetting.LogSavePath
}

// getLogFileName get the save name of the log file
func getLogFileName() string {
	logSaveName := setting.AppSetting.LogSaveName
	timeFormat := setting.AppSetting.TimeFormat
	logFileExt := setting.AppSetting.LogFileExt
	
	// 添加调试信息
	fmt.Printf("LogSaveName: %s, TimeFormat: %s, LogFileExt: %s\n", logSaveName, timeFormat, logFileExt)
	
	return fmt.Sprintf("%s%s.%s",
		logSaveName,
		time.Now().Format(timeFormat),
		logFileExt,
	)
}
